﻿<baseControl:Control x:Class="EFS.RC.CommunicatorContext.Operators.Search"
	xmlns:baseControl="clr-namespace:EFS.RC.CommunicatorContext.Common.Pages.Controls"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
	xmlns:behaviors="clr-namespace:EFS.Common.UI.Controls;assembly=EFS.Common.UI"
	xmlns:uiCtrlSL="clr-namespace:EFS.Common.UI.Controls;assembly=EFS.Common.UI"
    mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" MinHeight="470" MinWidth="900">

	<Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Top">
		<sdk:Label Height="18" HorizontalAlignment="Left" Margin="12,10,0,0" Name="label1" VerticalAlignment="Top" Width="69" Content="Firstname:" FontWeight="Bold" />
		<sdk:Label Height="18" HorizontalAlignment="Left" Margin="12,38,0,0" Name="label2" VerticalAlignment="Top" Width="69" Content="Lastname:" FontWeight="Bold" />
		<sdk:Label Height="18" HorizontalAlignment="Left" Margin="247,10,0,0" Name="label3" VerticalAlignment="Top" Width="95" Content="Phone Number:" FontWeight="Bold" />
		<sdk:Label Height="18" HorizontalAlignment="Left" Margin="247,38,0,0" Name="label4" VerticalAlignment="Top" Width="95" Content="Party ID:" FontWeight="Bold" />
		<sdk:Label Height="18" HorizontalAlignment="Left" Margin="515,10,0,0" Name="label5" VerticalAlignment="Top" Width="88" Content="Postal Code:" FontWeight="Bold" />
		<TextBox Height="24" HorizontalAlignment="Left" Margin="83,6,0,0" Name="textBoxFirstName" VerticalAlignment="Top" Width="150" TabIndex="1" uiCtrlSL:DefaultButtonService.DefaultButton="buttonSearch" />
		<TextBox Height="24" HorizontalAlignment="Left" Margin="83,34,0,0" Name="textBoxLastName" VerticalAlignment="Top" Width="150" TabIndex="2" uiCtrlSL:DefaultButtonService.DefaultButton="buttonSearch" />
		<TextBox Height="24" HorizontalAlignment="Left" Margin="350,34,0,0" Name="textBoxPolicyNumber" VerticalAlignment="Top" Width="150" TabIndex="4" uiCtrlSL:DefaultButtonService.DefaultButton="buttonSearch" />
		<TextBox Height="24" HorizontalAlignment="Left" Margin="350,6,0,0" Name="textBoxPhoneNumber" VerticalAlignment="Top" Width="150" TabIndex="3" uiCtrlSL:DefaultButtonService.DefaultButton="buttonSearch" />
		<TextBox Height="24" HorizontalAlignment="Left" Margin="598,6,0,0" Name="textBoxPostalCode" VerticalAlignment="Top" Width="150" TabIndex="5" uiCtrlSL:DefaultButtonService.DefaultButton="buttonSearch" />
		<Button Content="Search" Height="24" HorizontalAlignment="Left" Margin="515,34,0,0" Name="buttonSearch" VerticalAlignment="Top" Width="233" Background="#FFFFE800" BorderBrush="DimGray" Click="buttonSearch_Click" TabIndex="6"></Button>

		<sdk:DataGrid AutoGenerateColumns="False" Height="386" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="5,64,5,0" Name="dataGridHighwayResults" VerticalAlignment="Top" MinWidth="900" SelectionMode="Single">
			<interactivity:Interaction.Behaviors>
				<behaviors:DataGridDoubleClickBehavior DoubleClick="dataGridHighwayResults_DoubleClick"/>
			</interactivity:Interaction.Behaviors>
			<sdk:DataGrid.Columns>
				<sdk:DataGridTextColumn Binding="{Binding Path=Title}" Header="Title" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Firstname}" Header="Firstname" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Surname}" Header="Lastname" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Gender}" Header="Gender" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Birthday,TargetNullValue='N/A',StringFormat='dd/MM/yyyy'}" Header="Birthday" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=JobTitle}" Header="Job" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Email}" Header="Email" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Phone}" Header="Phone" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=PostalCode}" Header="PostalCode" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=AddressLine1}" Header="Address Line 1" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=AddressLine2}" Header="Address Line 2" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=TownCity}" Header="City" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=County}" Header="County" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=PolicyReference}" Header="Party" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTextColumn Binding="{Binding Path=ContactGuid}" Header="GUID" IsReadOnly="True" Width="Auto" />
				<sdk:DataGridTemplateColumn Header="">
					<sdk:DataGridTemplateColumn.CellTemplate>
						<DataTemplate>
							<HyperlinkButton Content="Open Party" Click="openPartyButton_Click" VerticalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"></HyperlinkButton>
						</DataTemplate>
					</sdk:DataGridTemplateColumn.CellTemplate>
				</sdk:DataGridTemplateColumn>
			</sdk:DataGrid.Columns>
		</sdk:DataGrid>
		<sdk:Label Content="More than {0} results, please refine your search criteria!" Foreground="Red" Height="14" HorizontalAlignment="Left" Margin="640,456,0,0" Name="labelMoreResultsBottom" VerticalAlignment="Top" Width="260" FontSize="9" Visibility="Collapsed" />
	</Grid>
</baseControl:Control>